﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Member.Common
{
    public class Common
    {
        /// <summary>
        /// Md5加密
        /// </summary>
        /// <param name="key">需要加密的文本</param>
        /// <returns>返回MD5</returns>
        public static string Md5(string key)
        {
            return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(key, "MD5");
        }
    }
}
